﻿
@{
    ViewBag.Title = "Form";
}

<h2>Form</h2>

@using (Html.BeginForm("Login", "Razor"))
{
    <div>User Name:</div>
    @Html.TextBox("UserName", null, new { @class = "form-control", data_id = "11" })
                                                                                           
    <div>Password:</div>
    @Html.Password("Password")
    
    <hr />
    <button>Login</button>
}